package main

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
	"myc/models"
	_ "myc/routers"
)
func init()  {
	orm.RegisterDataBase("default", "mysql", "root:root@tcp(127.0.0.1:3306)/easyadmin?charset=utf8", 30)
	orm.RegisterModel(new(models.User))
}
func main() {
	beego.Run()
}